From 7710ccfc3004f6c21c45e4ef5c1ae1c0cfee3829 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 6 Dec 2005 12:49:05 +0100 Subject: [PATCH] Pre-decrement rather than post-decrement in shadow32.c. Already fixed in shadow.c. Signed-off-by: Xiaofeng Ling --- xen/arch/x86/shadow32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/shadow32.c b/xen/arch/x86/shadow32.c index 9d372ac4de..298fdb1a5d 100644 --- a/xen/arch/x86/shadow32.c +++ b/xen/arch/x86/shadow32.c @@ -2203,7 +2203,7 @@ int shadow_remove_all_write_access( } if ( shadow_mode_external(d) ) { - if (write_refs-- == 0) + if (--write_refs == 0) return 0; // Use the back pointer to locate the shadow page that can contain -- 2.30.2